using System;
using System.Text.RegularExpressions;
using JetBrains.Annotations;



namespace Crocodile.SimplexLanguage.Attributes
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    [MeansImplicitUse]
    public class SimplexProcedureAttribute : System.Attribute
    {
        public readonly Regex Pattern;

        public SimplexProcedureAttribute(string pattern)
        {
            this.Pattern = 
                new Regex(pattern, RegexOptions.IgnorePatternWhitespace);
        }
    }
}